import {request} from './request';

export * from './userlist'
export * from './repariList'
export * from './invoiceList'
export * from './merchants'

//  获取服务
export const getService = async (data:any) => request({
	url: '/config/miniapp_module_list',
	method: 'post',
	data
})
// 获取统计
export const getStatic = async (data:any) => request({
	url: '/user/statistics',
	data
})


// 登录 === 有 ‘===’ 标识的改过管理端接口名字
export const login = (data:any) => request({
	url: '/manage/login/index',
	method: 'post',
	data
})

// 小程序配置名称获取  ===
export const getSmallProgram = (data:any) => request({
	url: '/manage/config/detail',
	data
})

// 消息公告相关
export const getMessageList = (data:any) => request({
	url: '/message/list',
	data
})
// banner
export const getBannerList = (data:any) => request({
	url: '/config/banner_list',
	data
})
// banner
export const getIntervalTime = (data:any) => request({
	url: '/config/banner/get_interval',
	data
})

//  租客联系人信息
export const getZkInfo = (data) => request(({
	url: '/user/info',
	data
}))

//  退出
export const quitSystem = (data) => request({
	url: '/user/logout',
	data
})
//  物业通知
export const getWNoticeList = (data) => request({
	url: '/notice/list',
	data
})
//  物业通知详情
export const getWNoticeListDetail = (data) => request({
	url: '/notice/detail',
	data
})

// 获取字典数据
export const getDictionary = (data) => request({
	url: '/option/all_dict_data_list',
	data
})

// 保存商户信息
export const handleSaveMerchantsInfo = (data) => request({
	url: '/merchant/update',
	data
})

// 房源列表
export const getHousingResource = (data) => request({
	url: '/merchant/house_list',
	data
})

// 获取商户详情
export const getMerchantInfo = (data) => request({
	url: '/merchant/detail',
	data
})

// 获取租客-商户列表
export const getMerchantList = (data) => request({
	url: '/merchant/list',
	data
})
// 上传签名
export const upLoadSign = (data) => request({
	url: '/upload/sign',
	data
})